package com.shop.cloud.common.exception;

import com.shop.cloud.util.ErrorCode;

public class ServiceException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	private ErrorCode errorCode;
	
	private String message;

	public ServiceException(ErrorCode errorCode) {
		this.errorCode = errorCode;
	}

	public ServiceException(String message) {
		this.message = message;
	}

	public ServiceException() {
	}
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public ErrorCode getErrorCode() {
		return errorCode;
	}


	public void setErrorCode(ErrorCode errorCode) {
		this.errorCode = errorCode;
	}
	
}
